<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: LV
  Date: 2016/7/20
  Time: 14:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <!-- 全屏 -->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- 上方栏显示 -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <!-- 不自动识别号码 -->
    <meta name="format-detection" content="telephone=no">
    <link href="${ctx}/assets/public_skin/css/reset.css" rel="stylesheet">
    <link href="${ctx}/assets/public_skin/css/shop_style.css" rel="stylesheet">
    <script src="${ctx}/assets/public_skin/js/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="${ctx}/assets/public_skin/js/shop.common.js" type="text/javascript"></script>
    <title>添加分类</title>
    <script type="text/javascript">
       function form_submit() {
           $("#category_form").submit();
       }
    </script>
</head>
<body>
<%--<header>--%>
    <%--<h1>分类管理</h1>--%>
    <%--<a href="javascript:;"></a>--%>
<%--</header>--%>
<article class="viewports">
    <form:form modelAttribute="categoryModel" action="${ctx}/shop/savingAddShopCategory" method="post" id="category_form">
    <form >
    <ul class="plr20 lh1-5 mt30">
        <li class="ptb20">
            <div class="c8">
                <div class="odr2 plr10 mt20 b-ffffff">
                    <input class="i_text" name="categoryName" type="text" value="${categoryModel.categoryName}" placeholder="分类名称"/>
                </div>
                <form:errors path="categoryName"/>
                <div class="odr2 plr10 mt20 b-ffffff">
                    <input class="i_text" name="orderNum" type="text" value="${categoryModel.orderNum}" placeholder="优先等级，数字越大优先等级越高"/>
                </div>
                <form:errors path="orderNum"/>
            </div>
        </li>
    </ul>
    </form>
    </form:form>
    <div class="tac ptb30"><a onclick="form_submit()"><button class="i_btn b-2db22d cf r5 lh2 plr75">保存分类</button></a></div>
</article>
</body>
</html>
